<template>
	<view class="flex">
		<view :class="activeClass">{{ priceValue | Money }}</view>
	</view>
</template>

<script>
	import Constants from '@/constants';
	//价格组件
	//@group 业务组件
	export default {
		//
		name: 'money',
		//
		data() {
			return {
				
			};
		},
		//
		mixins: [Constants],
		//
		props: {
			//价格样式对象（class，适用于已定义）
			activeClass: {
				type: Array,
				default: function() {
					return ['money-normal'];
				},
			},
			//价格
			priceValue: {
				type: [String, Number],
				default: 0,
				required: false
			}
		},
		
	};
</script>

<style lang="scss" scoped>
	.money-price-lg {
		color: $uni-color-price;
		font-size: 48rpx;
		font-style: normal;
		font-weight: 600;
		line-height: 64rpx; 
	}
	
	.money-price {
		font-size: $uni-font-size-lg;
		color: $uni-color-price;
		font-weight: 500;
	}
	.money-price-white{
		color: $uni-text-color-inverse;
	}
	
	.money-normal {
		font-size: $uni-font-size-base;
		font-weight: 400;
	}
	
	.money-60 {
		// font-size: $uni-font-size-base;
		// font-weight: 400;
		font-size: 60rpx;
		font-style: normal;
		font-weight: 600;
	}
	.money-36 {
		// font-size: $uni-font-size-base;
		// font-weight: 400;
		color: #333;
		text-align: center;
		font-family: PingFang SC;
		font-size: 36rpx;
		font-style: normal;
		font-weight: 600;
		line-height: 52rpx; /* 144.444% */
		letter-spacing: 2rpx;
	}
</style>